<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="author" content="彭俊超">
    <title>改变图片的透明度</title>
    <style>
          section{
              width:600px;
              height:300px;
              border:1px solid green;
              margin:100px auto;
              padding:10px;
              box-sizing: border-box;
          }
          ul{
              margin:0px;
              padding:0px;
              list-style: none;
          }
          ul{
              display: flex;
              justify-content: space-between;
          }
          li{
              width:128px;
              height:128px;
              border:1px solid orange;
              opacity: 0.2;
          }
          li:hover{
              opacity:1;
          }
    </style>
</head>

<body> 
    <section>
        <ul>
            <li><img src="img/1.jpg" alt=""></li>
            <li><img src="img/2.jpg" alt=""></li>
            <li><img src="img/3.jpg" alt=""></li>
            <li><img src="img/4.jpg" alt=""></li>
        </ul>
        <ul>
            <li><img src="img/5.jpg" alt=""></li>
            <li><img src="img/6.jpg" alt=""></li>
            <li><img src="img/7.jpg" alt=""></li>
            <li><img src="img/8.jpg" alt=""></li>
        </ul>
    </section>
</body>

</html>